home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / edtext.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  1.5 KB  |  70 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=edtext.cf
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. # RCSid[] = "@(#)$Header: edtext.SH,v 3.0 88/05/27 06:33:12 pb Rel $"
  9. #
  10. ##################################################
  11. ##################################################
  12. ##############
  13. ############## configure for edtext textual output
  14. ##############
  15. ##################################################
  16. ##################################################
  17.  
  18. # the directory to search for files in
  19.  
  20. directory $datadir
  21.  
  22. # enable tracing
  23. verbose 1
  24.  
  25. # output format
  26. output edtext
  27.  
  28. comment    hdr.file
  29.  
  30. #    context        subnet
  31. #    name
  32. context     X29        JANET
  33. context     X29        PSS
  34. context     Ts29        JANET
  35. context     Ts29        PSS
  36. context     FTP        JANET
  37. context     FTP        PSS
  38. context     Mail        JANET
  39. context     Mail        PSS
  40. context     JTMP        JANET
  41. context     JTMP        PSS
  42. context     JTMP-FILES    JANET
  43. context     JTMP-FILES    PSS
  44. context     JTMP-REG    JANET
  45. context     JTMP-REG    PSS
  46. context     Mail-telex    TELEX
  47. context     Mail-x29    JANET
  48. context     Mail-x29    PSS
  49. context     YBTS        JANET
  50. context     YBTS        PSS
  51. context     YBTS-NODE    JANET
  52. context     YBTS-NODE    PSS
  53. context     DESC        JANET    
  54.  
  55. domains
  56. !GROK!THIS!
  57. then if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  58.     then
  59.         rm -f $outputfile.$$
  60.         echo "    " $outputfile not affected
  61.     elif mv $outputfile.$$ $outputfile
  62.     then
  63.         echo "    " $outputfile updated
  64.     else
  65.         echo "+++    " $outputfile left in $outputfile.$$
  66.     fi
  67. else
  68.     echo "    " Failed to create $outputfile.$$
  69. fi
  70.